package com.landlords.model;

import java.util.Comparator;

import com.landlords.service.PokerService;

public class ComparatorPoker implements Comparator<Poker> {

	public int compare(Poker o1, Poker o2) {
		return PokerService.getIndexFromPOKER_POWER_ARRAY(o2.getNum())
				- PokerService.getIndexFromPOKER_POWER_ARRAY(o1.getNum());
	}
}
